package com.cskaoyan.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: Tao
 * @time: 2022/12/29 14:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminStorageListVo<T>{
    T data;
    String errmsg;
    int errno;

    public static <T> AdminStorageListVo err(String msg){
        AdminStorageListVo adminStorageListVO = new AdminStorageListVo();
        adminStorageListVO.setErrmsg(msg);
        adminStorageListVO.setErrno(402);
        return adminStorageListVO;
    }

    public static <T> AdminStorageListVo ok(T data) {
        AdminStorageListVo adminStorageListVO = new AdminStorageListVo();
        adminStorageListVO.setData(data);
        return adminStorageListVO;
    }

}
